RMTheme has go to section features and it goes directly in a way by smooth scrolling. Using anchor links to go directly to a section.
Where you need to add a button or link, it needs to add a class in the parent tag. Say, we add a link and it goes testimonial section when clicked.
You can add this technique to the WordPress default menu as well. Just enabled menu class and add go_to_section
class of desired menu item.
Smooth scroll offset conflicts with Elementor scroll. In that case, we need to add a script to the child theme footer.
Or if you want to add from your functions.php you can use this code: